<?php
/**
 * Created by PhpStorm.
 * User: lazycao
 * Date: 2017/12/6 0006
 * Time: 10:46
 */

namespace Home\Controller;


use Think\Controller;

class AuthController extends Controller
{
    function __construct()
    {
        parent::__construct();
        $this->isLogin();
    }

    protected function isLogin(){
        $user = session('user_auth');
        if(!$user){
            redirect(U('Login/login'));
        }
        return 1;
    }
}